<?php
/**
 * Created by PhpStorm.
 * Author: tqq
 * Email tianqiq@gmail.com
 * Date: 2015-12-11
 * Time: 20:57
 */

class RestController{

   function _get(){
       echo "_get";
       print_r(func_get_args());
       json($_GET);
   }

    function _delete(){
        echo "_delete";
        print_r(func_get_args());
        json($_POST);
    }

    function _post(){
        echo "_post";
        print_r(func_get_args());
        json($_POST);
    }

    function _put() {
        echo "_put";
        print_r(func_get_args());
        json($_POST);
    }

    function _head(){
        echo "_head";
        print_r(func_get_args());
        json($_POST);
    }


}